package com.lhj.springboot.web.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Description
 * @Author lhj
 * @Date 2024/6/16 15:37
 */
//@RestControllerAdvice
public class ExceptionHandle {
    
    @ExceptionHandler(value = {ArithmeticException.class})
    public String handleException(Exception e) {
        return "/(ㄒoㄒ)/~~~" + e.getMessage();
    }
    
}
